main: main.o add.o mul.o sub.o div.o
		g++ -o main add.o mul.o sub.o div.o main.o

main.o:main.cpp
		g++ -c -I ../include main.cpp

add.o:add.cpp ../include/head.h
		g++ -c -I ../include add.cpp

mul.o:mul.cpp ../include/head.h
		g++ -c -I ../include mul.cpp

sub.o:sub.cpp ../include/head.h
		g++ -c -I ../include sub.cpp

div.o:div.cpp ../include/head.h
		g++ -c -I ../include div.cpp

.PHONY:clean
clean:
		rm -f *.o
		rm -f main